<template>
  <CustomerHome v-if="role == 'customer'"></CustomerHome>
  <WorkerHome v-if="role == 'worker'"></WorkerHome>
  <MyTabbar name="首页"></MyTabbar>
</template>

<script setup lang="ts">
import MyTabbar from '@/components/my-tabbar/my-tabbar.vue';
import CustomerHome from './customerHome/customerHome.vue'
import WorkerHome from './workerHome/workerHome.vue'
import { computed } from 'vue';

const role = computed(()=>{
  return uni.getStorageSync("role") || "customer"
})

</script>

<style lang="scss" scoped>
 
</style>